package com.hotel_management_backstage.lin.dao;

import com.hotel_management_backstage.lin.entity.SysRoleMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SysRoleMenuMapper {
    List<SysRoleMenu> selectAllByRid(int roleId);
    List<SysRoleMenu> selectAllByManyRid(@Param("roleId") List<Integer> roleId);
    void save(SysRoleMenu srm);
    void saveAll(@Param("srm") List<SysRoleMenu> srm);
    void deleteAllByRid(int roleId);
}
